<?php
require_once("admin/dbconnect.php");
require_once("admin/classes/check_customer_session.php");
require_once("admin/classes/customer.php");

check_customer_session();



if($_POST['Submit_x'] != ""){
	$custObj=new Customer("");
	$mesg = $custObj->send_message($_POST['send_message_to'],$_POST['scrap']);
}


?>
<?php require_once('include/header.php'); ?>

<div id="middle_container_for_innerpage">
    <div id="innerpage_top_image"><img src="images/images/innerpage_top_corner_820x5.jpg"  height="5" /></div>
    <div id="middle_inner_container">
        <?php require_once('include/left_menu.php'); ?>

        <div id="inner_page_middle_data">
            <div id="page_heading">Message Sent Successfully!</div>
            <div id="message_details">
                <p>Your message has been sent successfully to , ID: <strong><?php echo $_POST['send_message_to']; ?></strong></p>
                <p>Your message was: <?php echo $_POST['scrap']; ?></p>
                <p style="background-color:#F5F5F5; padding:5px;"><? echo $mesg ?></p>
                <p>Send more messages to your preferred partner
                <div id="icon_and_text_container2"><div id="small_icon"><a href="#"><img src="images/images/page_white_edit.png" alt="Invite to eParinay.com" width="16" height="16" border="0" /></a></div><div id="icon_text2"><a href="#">Send an invitation to your friend.</a></div></div>
                <div id="icon_and_text_container2"><div id="small_icon"><a href="#"><img src="images/images/find_posts.png" alt="Search" width="16" height="16" border="0" /></a></div><div id="icon_text2"><a href="#">Back to Search</a></div></div>
                <div id="icon_and_text_container2"><div id="small_icon"><a href="register.php"><img src="images/images/email.png" alt="Register to eParinay.com" width="16" height="16" border="0" /></a></div>
                    <div id="icon_text2"><a href="my_messages.php">Check your message box</a></div>
                </div>
                </p>


                <div id="google_ad" style="">
                    <script type="text/javascript"><!--
                        google_ad_client = "pub-4949877136251097";
                        /* 468x60, created 7/18/10 */
                        google_ad_slot = "0254499042";
                        google_ad_width = 468;
                        google_ad_height = 60;
                        //-->
                    </script>
                    <script type="text/javascript"
                            src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                    </script>
                </div>
            </div>
        </div>




    </div>
    <div id="corner_container_bottom_for_innerpage"><img src="images/images/innerpage_bottom_corner_820x10.jpg"  height="10" /></div>
</div> 
<!-- middle_container ends -->




<?php require_once('include/footer.php'); ?>
